import request from "@/utils/request";
/**
 * 店铺管理
 * @param {*} params
 */
// 分页查询
export function shopPageByQo(params) {
  return request({
    url: "/admin/member/item/pageByQo",
    method: "post",
    params
  });
}

// 批量删除
export function shopRemoveByIds(params) {
  return request({
    url: "/admin/member/item/removeByIds",
    method: "post",
    params
  });
}

// 添加、修改(type有值为修改)
export function shopSave(data, type) {
  return request({
    url: type ? "/admin/member/item/update" : "/admin/member/item/save",
    method: "post",
    data
  });
}

// 单个查询（详情）
export function shopGetById(params) {
  return request({
    url: "/admin/member/item/getById",
    method: "post",
    params
  });
}
